<template>
	<view class="icons">
		<view class="icons-item" v-for="(item,index) in iconsList" :key='index'>
			<image class="icons-img" :src="item.imgUrl" mode=""></image>
			<text class="f-color">{{item.name}}</text>
		</view>
	</view>
</template>

<script>
	export default{
		props:{
			iconsList:Array
		}
	}
</script>

<style scoped>
	.icons{
		display: flex;
		/* 换行 */
		flex-wrap: wrap;
	}
	.icons-item{
		display: flex;
		/* 主轴方向为垂直 */
		flex-direction: column;
		width: 25%;
		/* 水平居中 */
		align-items: center;
		/* 垂直居中 */
		justify-content: center;
		padding: 10rpx 0;
	}
	.icons-img{
		width: 110rpx;
		height: 110rpx;
	}
</style>
